<template>
    <div class="index">
        <Navheader></Navheader>
        <!-- <Sidemenu></Sidemenu> -->
        <div class="workspace">
            <router-view></router-view>
        </div>
    </div>
</template>
<script>
    import Sidemenu from '../components/Sidemenu.vue'
    import Navheader from '../components/Navheader.vue'
    import {tip,ajax} from '../tools/tools.js'
    

    export default {
        components: {
            Sidemenu,
            Navheader
        },
        data() {
            return {
                v:'0.1'
            }
        },
        watch: {
            
        },
        methods: {
            
        },
        created(){
            var self = this;
            ajax.typeList({
                param:{
                    token:self.$root.TOKEN
                },
                cb(data){
                    self.$root.GOOD_TYPES = data.datalist;
                }
            })
        },
        mounted(){
            var self = this;

        }
    }
</script>
<style>


    .workspace {
        position: fixed;
        top: 50px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        background-color: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1200;
    }

    .viewport {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        padding: 15px 20px;
    }

    .center-form {
        max-width: 700px;
        margin: 0 auto;
    }

    .center-table {
        max-width: 800px;
        margin: 0 auto;
    }
</style>